 {{if isEmpty(data) || isEmpty(data.records)}}
 <tr><td colspan="6" style="text-align: center;">无数据</td></tr>
 {{else}}
<col width="20%"></col>
<col width="17%"></col>
<col width="13%"></col>
<col width="15%"></col>
<col width="15%"></col>
<col width="20%"></col>
{{if data.records.length>0}}
	{{each data.records as rdata i}}
		<tr>
			<td>{{rdata.id}}</td>
			<td>{{rdata.channel_name}}</td>
			<td class="ocount">0</td>
			<td class="osum">0</td>
			<td>
				{{if rdata.status =='1' }}
				<span class="typetext"><span style="color: green;">使用中</span></span>
				<span class="typebtn status_btn" data-id="{{rdata.id}}" data-usetype='1'><i class="iconfont">&#xe6c2;</i></span>
				{{else if rdata.status =='2' }}
				<span class="typetext"><span style="color: red;">停用中</span></span>
				<span class="typebtn status_btn" data-id="{{rdata.id}}" data-usetype='2'><i class="iconfont">&#xe61e;</i></span>
				{{else}}
				<span class="typetext"><span style="color: red;">未知</span></span>
				<span class="typebtn status_btn" data-id="{{rdata.id}}" data-usetype='1'><i class="iconfont">&#xe6c2;</i></span>
				{{/if}}
			</td>
			<td>
				<a href="javascript:void(0);" class="edit"  data-id="{{rdata.id}}">编辑</a>
				<a href="javascript:void(0);" class="view2code"  data-id="{{rdata.id}}" data-name="{{rdata.channel_name}}">查看二维码</a>
			</td>
		</tr>
	{{/each}}
{{/if}}
{{/if}}
<!-- 
<tr>
	<td>123465464984165</td>
	<td>渠道一</td>
	<td>78</td>
	<td>235</td>
	<td>
		<span class="typetext">使用中</span>
		<span class="typebtn status_btn" data-id="212134324324"><i class="iconfont">&#xe6c2;</i></span>
	</td>
	<td>
		<a href="#" data-toggle="modal" data-target="#myModal">编辑</a>
		<a href="#" data-toggle="modal" data-target="#myCode">查看二维码</a>
	</td>
</tr>
<tr>
	<td>123465464984165</td>
	<td>渠道二</td>
	<td>21</td>
	<td>222</td>
	<td>
		<span class="typetext">停用中</span>
		<span class="typebtn status_btn" data-id="212134324324"><i class="iconfont">&#xe6c2;</i></span>
	</td>
	<td>
		<a href="#" data-toggle="modal" data-target="#myModal">编辑</a>
		<a href="#" data-toggle="modal" data-target="#myCode">查看二维码</a>
	</td>
</tr>
 -->